/*
	Toast('请选择','warn');
	Toast('成功','success');
	Toast('提示','info');
*/
function toast(msg,type){
	$("#toast #weui_toast_content").html(msg);

	$("#toast #Toast_icon").removeClass();

	switch(type){
		case "warn":
			$("#toast #Toast_icon").addClass("weui_icon_warn");
			break;
		case "warn":
			$("#toast #Toast_icon").addClass("weui_icon_safe_warn");
			break;
		case "success":
		 	$("#toast #Toast_icon").addClass("weui_icon_success");
			break;
		case "success2":
		 	$("#toast #Toast_icon").addClass("weui_icon_toast");
			break;
		case "info":
		 	$("#toast #Toast_icon").addClass("weui_icon_info");
			break;

		default:
			$("#toast #Toast_icon").addClass("weui_icon_info");
	}
	
	$("#toast").show(function(){
		setTimeout(function(){
			$("#toast").hide();
		},1500);
	});
};


function toastLoading(){
	$("#loadingToast").show();
};

function toastClose(){
	$("#loadingToast").hide();
}